/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
define(
    ['dotdotdot'],
    function() {

        function NewsMd() {

            this.bind = function(){
               $('.text__news').dotdotdot({});
               $('.text__news').click(fullNews);
            };
            
            function fullNews()
            {
                $('.text__news').dotdotdot({});
                $('.text__news').css('height','80px');
                $(this).trigger("destroy");
                $(this).css('height','auto');
            };

        };

        return new NewsMd();
    });


